package com.chenyongjing.design.pattern.visitor.kpi;

import java.util.Random;

/**
 * 项目经理
 * @Author chen
 * @Date 2022/12/8 22:35
 */
public class Manager extends Employee{
    public Manager(String name) {
        super(name);
    }

    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);

    }

    // 考核的是每年新产品研发数量
    public int getProducts(){
        return new Random().nextInt(10);
    }
}
